package com.mmg.spzx.manager.mapper;

import com.mmg.spzx.model.dto.product.ProductDto;
import com.mmg.spzx.model.entity.product.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    List<Product> findByPage(ProductDto productDto);

    void save(Product product);

    Product findById(Long id);

    void update(Product product);

    void delete(Long id);
}
